import { ValueData } from '../base-data';

/**
 * 数值类型数据
 */
class NumberData extends ValueData<number>{

    protected generate(from: number): number {
        return from;
    }

    protected equal(a: number, b: number): boolean {
        return a === b;
    }

    protected copy(targetContainer: number[], source: number): void {
        targetContainer[0] = source;
    }

}

export { NumberData };